﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TempleAdd.aspx.cs" Inherits="TempleAdd" ValidateRequest="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<!DOCTYPE html>
<html>
<head>
   <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>50CMS后台框架</title>
    <link rel="shortcut icon" href="favicon.ico">
     <link href="../css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="../css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="../css/animate.css" rel="stylesheet">
    <link href="../css/style.css?v=4.1.0" rel="stylesheet">

        <link href="../50/style.css" rel="stylesheet" />
</head>
<body class="gray-bg">
<form id="form1" runat="server" class="form-horizontal m-t">
  <div class="wrapper animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
            
                    <div class="ibox-content">
                       <div class="panel-body">
                      <div class="form-group">


                         <div class="col-sm-12" style="margin-top: 1em;">
                            <label class="col-sm-2 control-label">选择分类：</label>
                            <div class="col-sm-6">
                                 <asp:DropDownList ID="aClassddl" runat="server" CssClass=" required" runat="server" 
                    Width="209px" AutoPostBack="True" 
                    onselectedindexchanged="aClassddl_SelectedIndexChanged" >
                </asp:DropDownList>
                            </div>
                        </div>

                     <div class="col-sm-12" style="margin-top: 1em;">
                            <label class="col-sm-2 control-label">新闻列表条数：</label>
                            <div class="col-sm-6">
                                    <asp:TextBox ID="txtName" runat="server"  CssClass="input w250 required" 
            maxlength="50" HintTitle="条数" HintInfo="条数" 
                    ontextchanged="txtName_TextChanged" AutoPostBack="True">10</asp:TextBox>
                            </div>
                        </div>



                     <div class="col-sm-12" style="margin-top: 1em;">
                            <label class="col-sm-2 control-label">标题字数：</label>
                            <div class="col-sm-6">
                                   <asp:TextBox ID="txtNu" runat="server"  CssClass="input w250 required" 
               ontextchanged="txtName_TextChanged" AutoPostBack="True"  maxlength="50" >10</asp:TextBox>
                            </div>
                        </div>

                     <div class="col-sm-12" style="margin-top: 1em;">
                            <label class="col-sm-2 control-label">摘要字数：</label>
                            <div class="col-sm-6">
                                  <asp:TextBox ID="txtZy" runat="server"  CssClass="input w250 required" 
             ontextchanged="txtName_TextChanged" AutoPostBack="True"    maxlength="50" >10</asp:TextBox>
                            </div>
                        </div>

                     <div class="col-sm-12" style="margin-top: 1em;">
                            <label class="col-sm-2 control-label">是否分页：</label>
                            <div class="col-sm-6">
                              <asp:TextBox ID="txtFy" runat="server"  CssClass="input w250 required" 
             ontextchanged="txtName_TextChanged" AutoPostBack="True"    maxlength="50" >0</asp:TextBox>
                            </div>
                        </div>

                           <div class="col-sm-12" style="margin-top: 1em;">
                            <label class="col-sm-2 control-label">分页条数：</label>
                            <div class="col-sm-6">
                              <asp:TextBox ID="Fynu" runat="server"  CssClass="input w250 required" 
             ontextchanged="txtName_TextChanged" AutoPostBack="True"    maxlength="50" >20</asp:TextBox>（用于list页面）
                            </div>
                        </div>

               <div class="col-sm-12" style="margin-top: 1em;">
                            <label class="col-sm-2 control-label">内置样式：</label>
                            <div class="col-sm-6">
                          <asp:DropDownList ID="ddStyle" runat="server" AutoPostBack="True"
                    onselectedindexchanged="ddStyle_SelectedIndexChanged">
               <asp:ListItem Value="<li><a href='#link#'>#title#</a></li>">纯文字标题</asp:ListItem>
               <asp:ListItem Value="<li><h2></><a href='#link#'>#title#</a></h2><h3>#time#</h3></li>">标题+日期</asp:ListItem>
               <asp:ListItem Value="<li><h1><a href='#link#'><img  src='#img#' width='230' height='153' /></a></h1><h2><a href='#link#'>#title#</a></h2></li>">图片+标题</asp:ListItem>
               <asp:ListItem Value="<li><h1><a href='#link#'><img width='517' height='168' src='#img#' border='0'/></a></h1><h2>#title#</h2><h3>#info#</h3></li>">图片+摘要</asp:ListItem>
               <asp:ListItem Value="<img  src='#img#' width='120' height='99' />">纯图片</asp:ListItem>
           
                </asp:DropDownList>
                            </div>
                        </div>


            <div class="col-sm-12" style="margin-top: 1em;">
                            <label class="col-sm-2 control-label">构造：</label>
                            <div class="col-sm-6">
                         <asp:TextBox ID="txtTag" runat="server" CssClass="textarea wh480"  Height="100px" 
              Width="500px" HintTitle="自定义代码" 
                    maxlength="350" HintInfo="调用方法$use_自定义标签代码$。" 
                    TextMode="MultiLine"></asp:TextBox>
                            </div>
                        </div>


    <div style="margin-top:10px;text-align:center;">                             
   <input id="Button1" class="btn btn-primary" type="button" value="插入" onclick="javascript:selectLabel(document.getElementById('txtTag').value)+'&nbsp;';" />

  &nbsp;
  <input type="button" class="btn btn-primary" id="btnCancel" onclick="close();" value="取消" />







                             </div>
                        </div>
                    </div>
                </div>
            </div>
       
    </div>
        </form>

    
      <!-- 全局js -->
    <script src="../js/jquery.min.js?v=2.1.4"></script>
    <script src="../js/bootstrap.min.js?v=3.3.6"></script>

      <!-- 自定js -->
         <script src="../50/function.js"></script>  
<script language="javascript" type="text/javascript">
    function selectLabel(rvalue) {
        parent.ReturnLayerValueText(rvalue);
    }
</script>
    <script type="text/javascript" src="../js/layer/layer.js"></script>
    <script type="text/javascript">
      
               function close()
                {
  var index = parent.layer.getFrameIndex(window.name);
parent.layer.close(index);//关闭当前页      
                }
    
    
    </script>
 
</body>
</html>


